{% extends "theme_base.html" %}

{% block js %}
<script src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" charset="utf-8"
    data-appid="101073122" data-redirecturi="http://localhost:8000/v1/auth/callback/qq" >
</script>

<script type="text/javascript">
    QC.Login({
        btnId:"qq_login_btn"
    });
</script>   
{% endblock %}

{% block body %}    
<form method="post" action="">
	{% csrf_token %}
	{{ form }}
	<input type="submit">
</form>

</p>
<span id="qq_login_btn"></span>
<script type="text/javascript">
    QC.Login({//按默认样式插入QQ登录按钮
        btnId:"qq_login_btn"    //插入按钮的节点id
    });
</script>
{% endblock %}